<tr>
    @if(\App\Models\Settings::get('use_avatars'))
    <th>{{ trans('users.avatar') }}</th>
    @endif
    <th>{!! TableSorter::sortSearch('\App\Modules\Admin\Controllers\AdminUsersController@getAll', trans('users.username'), $search, 'users.username', $order, $limit) !!}</th>
    <th>{!! TableSorter::sortSearch('\App\Modules\Admin\Controllers\AdminUsersController@getAll', trans('users.email'),$search, 'users.email', $order, $limit) !!}</th>
    <th>{!! TableSorter::sortSearch('\App\Modules\Admin\Controllers\AdminUsersController@getAll', trans('users.roles'), $search,'ur.role_id', $order, $limit) !!}</th>
    <th>{!! TableSorter::sortSearch('\App\Modules\Admin\Controllers\AdminUsersController@getAll', trans('users.deactivated_at'), $search,'users.deleted_at', $order, $limit) !!}</th>
    <th>{!! TableSorter::sortSearch('\App\Modules\Admin\Controllers\AdminUsersController@getAll', trans('users.registered_at'),$search, 'users.created_at', $order, $limit) !!}</th>
    <th>{!! TableSorter::sortSearch('\App\Modules\Admin\Controllers\AdminUsersController@getAll', trans('users.confirmed_at'),$search, 'users.confirmed_at', $order, $limit) !!}</th>
    <th>{!! TableSorter::sortSearch('\App\Modules\Admin\Controllers\AdminUsersController@getAll', trans('users.last_seen'),$search, 'users.last_seen', $order, $limit) !!}</th>
    <th>{{ trans('temp.actions') }}</th>
</tr>